const express = require('express');
const router = express.Router();
const verifyToken = require('../middleware/authMiddleware');

// 验证token的路由
router.get('/verify', verifyToken, (req, res) => {
  res.json({ message: 'Token有效', user: req.user });
});

module.exports = router; 